<template>
  <div id="app" class="app-container">
    <title-bar></title-bar>
    <div class="main-content">
      <side-bar class="sidebar"></side-bar>
      <router-view class="container"></router-view>
    </div>
  </div>
</template>

<script>
import TitleBar from "@/components/TitleBar.vue";
import SideBar from "@/components/SideBar.vue"

export default {
  components: {
    TitleBar,
    SideBar
  },
};
</script>

<style scoped>

.app-container {

  display: flex;
  flex-direction: column;
}

.sidebar {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 200px; 
  background-color: #333;
  color: #fff;
  padding: 20px;
  overflow-y: auto; 
}
.main-content {
  display: flex;
  flex-direction: row;
  flex-grow: 1;
}


.container {
  flex-grow: 1;
  margin-left: 250px;
  padding: 20px; 
  background-color: #fff;
}


</style>
